<?php echo $this->headLink()->appendStylesheet('/css/search.css') ?>
<div id="global">
	<?php require_once '/template/left-sidebar.phtml';?>
	<div id="content-with-twoside">
		<div class="global-border">
			<h1><span><?php echo $this->escape($this->title);?></span></h1>
			<div class="global-content">
				<table id="tblSrhProduct">
					<?php 
					for($i=0; $i<sizeof($this->pbEntries); $i++){
						if($i % 2 == 0){
							echo "<tr><td>";
						}
						else{
							echo "<td>";
						}
					?>
						<table>
							<tr>
								<td rowspan="3" style="width: 140px;">
									<img src="<?php echo $this->pbEntries[$i]->image;?>" width="140px" height="100px"></img>
								</td>
								<td>
									<b><a href='<?php echo $this->escape($this->action) . "/pid/" . $this->pbEntries[$i]->product_buy_id; ?>'>
									<?php echo $this->pbEntries[$i]->title;?></a></b>
								</td>
							</tr>
							<tr>
								<td><?php echo $this->username . $this->pbEntries[$i]->username;?></td>
							</tr>
							<tr>
								<td><?php echo $this->new . $this->pbEntries[$i]->new . "%";?></td>
							</tr>
						</table>
					<?php 
						if($i % 2 == 0){
							echo "</td>";
							if($i + 1 == sizeof($this->pbEntries)){
								echo "<td></td></tr>";
							}
						}
						else{
							echo "</td></tr>";
						}
					}
					?>
				</table>
			</div>
		</div>
	</div>
	<?php require_once '/template/right-sidebar.phtml';?>
</div>